/*
 * Master Client Handler
 */
package handler;

import gui.NewQueryDialog;
import java.awt.event.ActionEvent;
import gui.MasterClient;

/**
 * Everything ClientHandler is, only More!...!
 * @author Kay van Bree
 */
public class MasterClientHandler extends ClientHandler {
	private final MasterClient masterClient;
	
	/**
	 * Calls super and sets a MasterClient object to use here
	 * @param client 
	 */
	public MasterClientHandler(MasterClient client){
		super(client);
		masterClient = client;
	}
	
	/**
	 * Handle Admin menu buttons
	 * @author Kay van Bree
	 * @param e 
	 */
	@Override
	public void actionPerformed(ActionEvent e) {
		super.actionPerformed(e);
		if(e.getSource() == masterClient.itemAddQuery) performAddQuery();
	}
	
	/**
	 * Start add query dialog
	 * @author Kay van Bree
	 */
	private void performAddQuery(){
		NewQueryDialog dialog = new NewQueryDialog();
	}
}
